var Client=require("mysql").Client;
var rows;

function getClient(){
	client=new Client();
	client.user='root';
	client.password='wangsanfei1989';
	client.database='node';
	client.host='localhost';
	client.port=3306;
	return client;
}

function getRows(sql,callback){
	var client=getClient();
	client.query(sql,callback);
	client.end();
}
exports.getRows=getRows;
exports.getClient=getClient;